package com.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import java.util.List;

/**
 * @author xiaoshu
 * @description
 * @date 2023年02月05日 12:26
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "elastic")
public class ElasticSearchPropertie {

    private String userName;
    private String password;

    private List<Node> nodes;

    @Data
    public static class Node{
        private String scheme;
        private String ip;
        private Integer port;
    }
}
